package org.example.design.visitor.test2;

import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author huangshen
 * @version 0
 * @description XueZha
 * @since 2022/2/10 9:43
 */
@EqualsAndHashCode()
@Data
public class XueZha implements Student {

    private String type = "学渣";

    private Integer month;

    @Override
    public void accept(StuVisitor v, Integer month) {
        this.month = month;
        v.visit(this);
    }

}
